package com.wyc.apiboss.service.impl;

import com.wyc.apiboss.feign.DriverUserFeignClient;
import com.wyc.apiboss.service.DriverCarBindingRelationshipService;
import com.wyc.internalCommon.request.DriverCarBindingRelationshipDTO;
import com.wyc.internalCommon.result.ApiResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DriverCarBindingRelationshipServiceImpl implements DriverCarBindingRelationshipService {

    @Autowired
    private DriverUserFeignClient driverUserFeignClient;

    /**
     * 司机绑定车辆
     * @param driverCarBindingRelationshipDTO
     * @return
     */
    @Override
    public ApiResult bind(DriverCarBindingRelationshipDTO driverCarBindingRelationshipDTO) {
        return driverUserFeignClient.bind(driverCarBindingRelationshipDTO);
    }

    /**
     * 司机解绑车辆
     * @param driverCarBindingRelationshipDTO
     * @return
     */
    @Override
    public ApiResult unBind(DriverCarBindingRelationshipDTO driverCarBindingRelationshipDTO) {
        return driverUserFeignClient.unBind(driverCarBindingRelationshipDTO);
    }
}
